* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  html,
  body {
    width: 100%;
  }

  div {
    width: 1000px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  section {
    width: 300px;
    height: 200px;
    margin-right: 20px;
    border-top: 10px #e3e2e4 solid;
    position: relative;
    overflow: hidden;
  }

  

  img {
    width: 100%;
    height: 100%;
    transition: 0.5s;
  }

  ul {
    list-style: none;
  }

  /* s1 */
  .s1 li:nth-of-type(1) {
    color: white;
    font-size: 15px;
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 10px;
    transition: 2s;
  }
  .s1 li:nth-of-type(2) {
    width: 80px;
    display: flex;
    justify-content: space-evenly;
    color: #000;
    background-color: blue;
    font-size: 13px;
    position: absolute;
    top: 60px;
    left: -100px;
    transition: 0.5s;
  }

  .s1 li:nth-of-type(3) {
    width: 80px;
    display: flex;
    justify-content: space-evenly;
    color: #000;
    background-color: blue;
    font-size: 13px;
    position: absolute;
    top: 100px;
    left: 300px;
    transition: 0.5s;
  }
  .s1 li:nth-of-type(4) {
    width: 80px;
    display: flex;
    justify-content: space-evenly;
    color: #000;
    background-color: blue;
    font-size: 13px;
    position: absolute;
    top: 140px;
    left: -100px;
    transition: 0.5s;
  }

  .s1:hover{
    transform: translateX(30px);
  }

  .s1:hover li:nth-of-type(1) {
    transform: translateX(30px);
  }
  .s1:hover li:nth-of-type(2) {
    transform: translateX(140px);
  }
  .s1:hover li:nth-of-type(3) {
    transform: translateX(-260px);
  }
  .s1:hover li:nth-of-type(4) {
    transform: translateX(140px);
  }

  /* s2 */
  .s2 li:nth-of-type(1) {
    color: white;
    font-size: 15px;
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 10px;
    transition: 0.5s;
  }
  .s2 li:nth-of-type(2) {
    width: 125px;
    display: flex;
    justify-content: start;
    color: #000;
    background-color: white;
    font-size: 13px;
    position: absolute;
    top: 50px;
    left: -150px;
    transition: 0.5s;
  }

  .s2 li:nth-of-type(3) {
    width: 90px;
    display: flex;
    justify-content: start;
    color: #000;
    background-color: white;
    font-size: 13px;
    position: absolute;
    top: 75px;
    left: -150px;
    transition: 0.5s;
  }
  .s2 li:nth-of-type(4) {
    width: 90px;
    display: flex;
    justify-content: start;
    color: #000;
    background-color: white;
    font-size: 13px;
    position: absolute;
    top: 100px;
    left: -150px;
    transition: 0.5s;
  }

  .s2:hover img {
    transform: translateX(-20px);
  }


  .s2:hover li:nth-of-type(2) {
    transform: translateX(160px);
  }
  .s2:hover li:nth-of-type(3) {
    transform: translateX(160px);
  }
  .s2:hover li:nth-of-type(4) {
    transform: translateX(160px);
  }


  /* s3 */
  .s3 img{
    transform-origin: 50% 100%;
  }
  

  .s3 span:first-of-type {
    color: white;
    font-size: 15px;
    font-weight: 900;
    position: absolute;
    top: -100px;
    left: 10px;
    transition: 1s;
  }
  .s3 span:last-of-type {
    color: black;
    font-size: 10px;
    font-weight: 900;
    position: absolute;
    top: 400px;
    left: 10px;
    transition: 1s;
    margin-left: 40px;
  }

    .s3:hover img {
    transform: scaleY(1.05);
  }

  .s3:hover span:first-of-type{
    transform: translateY(150px);
  }
  .s3:hover span:last-of-type{
    transform: translateY(-320px);
  }

  /* s4 */
  .s4 div{
    width: 500px;
    height: 300px;
    background-color: blue;
    transition: 1s;
    position: absolute;
    transform-origin: 0px 0px;
    top: 100%;
    left: 0;
  }
  .s4 span:first-of-type {
    color: black;
    font-size: 10px;
    position: absolute;
    bottom:-20px;
    right: 10px;
    transform-origin: 0 0;
    transition: 1s;
  }
  .s4 span:last-of-type {
    color: white;
    font-size: 15px;
    font-weight: 900;
    position: absolute;
    top: -30px;
    left: -30px;
    transition: 1s;
    margin-left: 40px;
  }
  .s4:hover div{
    transform: rotateZ(-10deg);
  }
  .s4:hover span:first-of-type{
    transform: translateY(-40px);
  }
  .s4:hover span:last-of-type{
    transform: translateY(60px);
  }


  /* s5 */
  .s5 span:first-of-type {
    color: white;
    font-size: 15px;
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 10px;
    transition: 2s;
  }


  .s5 span:last-of-type {
    color: black;
    font-size: 10px;
    font-weight: 900;
    position: absolute;
    top: 400px;
    left: 10px;
    transition: 1s;
    padding: 0px 20px;
  }
 .s5:hover span:nth-of-type(1) {
    transform: translateX(30px);
  }
  .s5:hover span:last-of-type{
    transform: translateY(-350px);
  }

  .s5 div{
    width: 90%;
    height: 90%;
    border: solid;
    margin: 10px auto;
    position: absolute;
    top: -200px;
    left:10px;
    transform-origin: 0px 10px;
    transition: 2s;
  }

  .s5:hover div{
    transform: translateY(200px) rotate(360deg);
  }

  /* s6 */
  .s6:hover{
    transform: scale(1.2);
  }

  .s6{
    position: relative;
  }

  .s6 span{
  transform: 2s;
  font-size: 15px;
  position: absolute;
  bottom: 30%;
  right: 10%;
  transition: 2s;
  }

  .s6:hover span{
    transform: rotate(315deg);
  }
  

